/* 2017-9-28 16:14:36  */
//模块：
LArk.widget.bindClass(LArk.widget.BaseWidget.extend({
    options: {
        //弹窗
        view: {
            type: "window",
            url: "view.html",
            windowOptions: {
                width: 300,
                height: 400,
                position: {
                    top: 100,
                    right: 10
                }
            }
        },
    },
    viewWindow: null,
    //每个窗口创建完成后调用
    winCreateOK: function (opt, result) {
        this.viewWindow = result;
    },
    //激活插件
    activate: function () {

    },
    //释放插件
    disable: function () {
        this.viewWindow = null;

    },
    showExtent: function (cfg) {
        console.log('书签定位：' + JSON.stringify(cfg));

        this.viewer.LArkgis.centerAt(cfg, { isWgs84: true });
    },
    getDefaultExtent: function () {
        return this.viewer.LArkgis.config.center;
    },
    getThisExtent: function () {
        var bookmark = LArk.point.getCameraView(this.viewer, true);
        return bookmark;
    }

}));